package com.bng8.superstar_cms.domain.dto;

import com.bng8.superstar_cms.domain.common.GenderType;
import com.bng8.superstar_cms.util.InsertValidationGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * ClassName: SupChallengerDTO
 * Package: com.bng8.superstar_cms.domain.dto
 * Date: 2023/8/17 13:23
 * Author: 安知（13921877634）
 */
@Data
public class SupChallengerDTO implements Serializable {
    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 3123576367539689719L;

    /**
     * 用户名
     */
    @NotBlank(message = "用户名不能为空！",
            groups = {InsertValidationGroup.class})
    private String userName;

    /**
     * 挑战者
     */
    @NotBlank(message = "挑战者不能为空！",
            groups = {InsertValidationGroup.class})
    private String challenger;

    /**
     * 性别：0：保密, 1：男, 2：女
     */
    @NotNull(message = "性别不能为空！",
            groups = {InsertValidationGroup.class})
    private GenderType gender;

    /**
     * 年龄
     */
    @NotNull(message = "年龄不能为空！",
            groups = {InsertValidationGroup.class})
    private Integer age;

    /**
     * 任务编号
     */
    private SupMissionDTO mission;

    /**
     * 创建时间
     */
    private LocalDateTime gmtCreate;

}
